<?php

namespace App\Validate\Web;

use App\Validate\BaseValidate;

class PayRechargeValidate extends BaseValidate
{
    protected $rules = [];// 规则

    protected $message = [];// 自定义消息

    public function __construct($request)
    {
        parent::__construct($request);

        $this->rules = [
            'amount' => 'required|numeric',
        ];
        $this->message = [
            'amount.required' => '请输入充值金额',
            'amount.numeric' => '请输入正确的充值金额',
        ];
    }

    protected function customValidate()
    {

    }
}
